<?php

namespace app\helpers;


use yii\helpers\Html;

class UserHelper {

    public static $userPriority = [
        '1' => '优先级1级', '2' => '优先级2级', '3' => '优先级3级', '4' => '优先级4级', '5' => '优先级5级'
    ];

    public static $deviceType = ['1' => 'SIP', '2' => 'CDMA', '7' => 'TR', '8' => 'DISP'];

    public static $voCoder = ['8' => 'PCMA', '0' => 'PCMU', '38' => 'AHELP', '39' => 'ACELP', '35' => 'EVRC', '18' => 'G729', '40' => 'AMR'];

    public static $roles = ['1' => '主席/组长', '2' => '组员', '3' => '组创建者', '4' => '调度员'];
    public static $groupType = ['0' => '广播', '1' => '静态组', '2' => '动态组', '3' => '临时组'];

    public static $userPriorityMap = [
        '1' => 0x10000000, '2' => 0x20000000, '3' => 0x30000000, '4' => 0x50000000, '5' => 0x50000000
    ];
    public static $profileMap = [
        'is_group' => 0x00010000,
        'is_sms' => 0x00020000,
        'is_call_waiting' => 0x00000200,
        'is_more_call' => 0x00000400,
        'is_call_out' => 0x00000040,
        'is_call_in' => 0x00000020,
        'is_call_group' => 0x00008000,
        'is_fwd_no_answer' => 0x00001000,
        'is_fwd_on_busy_num' => 0x00002000,
        'is_fwd_unc' => 0x00004000,
        'is_fwd_na_num' => 0x00000100,
        'is_full_duplex' => 0x00100000,
        'is_half_duplex' => 0x00200000,
    ];

    public static $profileExt = [
        'yy' => 0x00000020,
        'yb' => 0x00000008,
        'gps' => 0x00000080,
        'is_secrecy' => 0x00000001,
    ];

}